From: Florian Müllner Date: Tue, 13 Jun 2017 04:41:08 +0000 (+0200) Subject: calendar: Fix access to undefined property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~262 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b73c96d14c13858ba48ff3dec0b3131b83bb8adb;p=gnome-shell.git calendar: Fix access to undefined property Don't call a parent method before chaining-up _init() to avoid a warning about access to an undefined property. https://bugzilla.gnome.org/show_bug.cgi?id=781471 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 32718ea6d..f27c894dc 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -761,8 +761,8 @@ const NotificationMessage = new Lang.Class({ _init: function(notification) { this.notification = notification; - this.setUseBodyMarkup(notification.bannerBodyMarkup); this.parent(notification.title, notification.bannerBodyText); + this.setUseBodyMarkup(notification.bannerBodyMarkup); this.setIcon(this._getIcon());